package com.finger.service;

import com.finger.dao.WordDao;
import com.finger.pojo.Prompt;
import com.finger.pojo.Scale;
import com.finger.pojo.User;
import com.finger.pojo.Word;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


public interface WordService {

    //获取一条合适的单词信息
    Word getWord(User user);

    //用户提交一条单词信息
    Boolean sendWord(Word word,int uid);

    //获取当前用户学习进度
    Scale getSacle(int id);

    //获取提交正确或错误的提示信息
    List<Prompt> getPrompts();

    //根据用户id和单词id查询当前单词错误率
    double getErrorRateByUidAndWid(Integer uid,Integer wid);
}
